package com.kaifamiao.mapper;

import com.kaifamiao.pojo.Doctor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

public interface DoctorMapper {
    public List<Doctor> findAll();

    public Doctor findById(int id);

    public Doctor findByUsername(String username);

    public Doctor findByPhoneNumber(String phoneNumber);

    public List<Doctor> findByDepartmentId(int id);

    public int addDoctor(Doctor doctor);

    public int update(Doctor doctor);

    public int delete(int id);

    public int maxPatientsSum();
}
